﻿<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
    <div id="container" style="height: 300px;"></div>
    <script type="text/javascript" src="js/echarts-all-3.js"></script>
    <script type="text/javascript" src="js/ecStat.min.js"></script>
    <script type="text/javascript" src="js/dataTool.min.js"></script>
    <script type="text/javascript" src="js/china.js"></script>
    <script type="text/javascript" src="js/world.js"></script>
    <script type="text/javascript" src="js/api.js"></script>
    <script type="text/javascript" src="js/bmap.min.js"></script>
    <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
app.title = '地区广告业务开展情况';

option = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            crossStyle: {
                color: '#999'
            }
        }
    },
    toolbox: {
        feature: {
            dataView: {show: true, readOnly: false},
            magicType: { show: true, type: ['line', 'bar'] },
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    legend: {
        data: ['电梯总数', '开展广告业务占比']
    },
    xAxis: [
        {
            type: 'category',
            data: ['广州', '北京', '天津', '太原', '重庆', '海南', '西安', '惠州', '成都', '哈尔滨', '上海', '贵阳', '梅州', '福州', '惠东', '杭州', '南京', '沈阳', '无锡', '包头 ', '佛山', '大同', '珠海', '石家庄', '长沙'],
            axisPointer: {
                type: 'shadow'
            }
        }
    ],
    yAxis: [
        {
            type: 'value',
            name: '数量',
            min: 0,
            max: 1500,
            interval: 200,
            axisLabel: {
                formatter: '{value} '
            }
        },
        {
            type: 'value',
            name: '比率',
            min: 0,
            max: 100,
            interval: 50,
            axisLabel: {
                formatter: '{value} %'
            }
        }
    ],
    series: [
        {
            name:'电梯总数',
            type: 'line',
            yAxisIndex: 0,
            data: [1375, 1372, 690, 727, 392, 176, 239, 83, 110, 96, 175, 38, 106, 23, 18, 166, 200, 59, 68, 64, 14, 47, 0, 0, 0]
        },
        {
            name:'开展广告业务占比',
            type: 'line',
            yAxisIndex: 1,
            data: [62, 52, 36, 42, 67, 40, 88, 14, 89, 0, 0, 0, 100, 0, 0, 70, 70, 57, 0, 0, 0, 0, 0, 0, 0]
        }
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
    </script>
</body>
</html>